$(function() {	
    reportSpace="armmonthreporter/arm-month-product-reporter!";
  	$(".datepicker" ).datepicker();
  	
	$("div.pagination ul li a").bind("click",function(){
		var page = $(this).attr("page");
		var link = reportSpace+"pager?page="+page+"&rows=10";
		doGet(link);	
		
	});
 
});

function newOne(){
	var url = reportSpace+'preSelected';    
    window.open(url,'rptwin');
}

function showOne(rid){
	var url=reportSpace+'show?bean.id='+rid;
	window.open(url,'rptwin');
}
function showPrint(rid){
	var url=reportSpace+'jasperhtml?bean.id='+rid;
	window.open(url,'rptwin');
}
function removeOne(rid,self){
	var url=reportSpace+'remove?bean.id='+rid;
    doSubmit(url,"",function(){
    	$(self).parent().parent().remove();
    });
}
